<?php

namespace Ue\ErpBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * OrganizeUser
 *
 * @ORM\Table(name="ue_organize_user", indexes={@ORM\Index(name="organize_id_idx", columns={"organize_id"}), @ORM\Index(name="admin_id_idx", columns={"admin_id"})})
 * @ORM\Entity
 */
class OrganizeUser
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="bigint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var \Admin
     *
     * @ORM\ManyToOne(targetEntity="Admin")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="admin_id", referencedColumnName="id")
     * })
     */
    private $admin;

    /**
     * @var \Organize
     *
     * @ORM\ManyToOne(targetEntity="Organize")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="organize_id", referencedColumnName="id")
     * })
     */
    private $organize;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set admin
     *
     * @param \Ue\ErpBundle\Entity\Admin $admin
     * @return OrganizeUser
     */
    public function setAdmin(\Ue\ErpBundle\Entity\Admin $admin = null)
    {
        $this->admin = $admin;

        return $this;
    }

    /**
     * Get admin
     *
     * @return \Ue\ErpBundle\Entity\Admin 
     */
    public function getAdmin()
    {
        return $this->admin;
    }

    /**
     * Set organize
     *
     * @param \Ue\ErpBundle\Entity\Organize $organize
     * @return OrganizeUser
     */
    public function setOrganize(\Ue\ErpBundle\Entity\Organize $organize = null)
    {
        $this->organize = $organize;

        return $this;
    }

    /**
     * Get organize
     *
     * @return \Ue\ErpBundle\Entity\Organize 
     */
    public function getOrganize()
    {
        return $this->organize;
    }
}
